﻿using System;
using System.Collections.Generic;
using System.Text;
using Pahan.McuFusion.Common;

namespace Pahan.McuFusion.Spi
{
    [Serializable]
    public class AlgorithmBuilderSpiInterfaceInfo : HardwareInterfaceInfo
    {
        #region Overrides of BaseInfo

        public override string Name
        {
            get { return "Algorithm Builder compatible serial interface."; }
        }

        public override string Description
        {
            get { return ""; }
        }

        #endregion

        #region Overrides of HardwareInterfaceInfo

        /// <summary>
        /// Creates the hardware interface.
        /// </summary>
        public override IHardwareInterface CreateInterface()
        {
            return new AlgorithmBuilderSpiInterface(this);
        }

        /// <summary>
        /// Gets the list of the interfaces implemented by the realization
        /// of the IHardwareInterface.
        /// </summary>
        protected override IList<Type> ImplementedInterfaces
        {
            get { return new[] {typeof(ISpiInterface)}; }
        }

        #endregion
    }
}
